/*
 * @Description: 你的代码我的心
 * @Author: GGB
 * @Date: 2021-12-28 16:11:14
 * @LastEditors: GGB
 * @LastEditTime: 2021-12-30 09:27:10
 */
// 商品信息
export type GoodsItemType = {
  goods_image: string;
  goods_name: string;
  goods_price: string;
  order_id: string;
}
// 卖家信息
export type BuyerType = {
  avatar_url: string;
  nick_name: string;
  platform: string;
  user_id: number;
}
// 店铺信息
export type StoreType = {
  store_id: number;
  store_name: string;
  phone: string;
  is_o2o: boolean;
  is_expresss: boolean;
}
// 修改价格信息
export type UpdatePriceType = {
  symbol: string;
  value: string;
}
// 配送信息
export type LocalDeliveryType = {
  deliverer: string;
  deliverer_mobile: string;
  delivery_no: string;
  delivery_status: number;
  delivery_status_text: string;
  delivery_time: number;
  express_id: string;
  express_name: string;
  order_no: string;
}

// 物流信息
export type ExpressType = {
  express_id: number;
  express_name: string;
}
// 区域类型
export type RegionType = {
  province: string;
  city: string;
  region: string;
}
export type AddressType = {
  city_id: number;
  create_time: string;
  detail: string;
  doorplate: string;
  jd: string;
  name: string;
  order_address_id: number;
  order_id: number;
  phone: string;
  province_id: number;
  region: RegionType;
  region_id: number;
  store_id: number;
  user_id: number;
  wd: string;
}

// 订单记录
export type OrderRecordModel = {
  buyer_remark?: string;
  coupon_id?: number;
  coupon_money?: number | string;
  create_time?: string;
  delivery_status?: string;
  delivery_status_text?: string;
  delivery_text?: string;
  delivery_time?: string;
  delivery_type?: number;
  express_company?: string;
  express_id?: string;
  express_no?: string;
  express_price?: string;
  goods?: GoodsItemType[];
  local_delivery?: LocalDeliveryType[];
  is_comment?: boolean;
  is_delete?: boolean;
  is_settled?: boolean;
  order_id?: number;
  order_no?: string;
  order_price?: string;
  order_source?: number;
  order_source_id?: number;
  order_status?: number;
  pay_price?: string;
  pay_status?: number;
  pay_time?: string;
  pay_type?: number;
  points_bonus?: number;
  points_money?: string;
  points_num?: number;
  receipt_status?: number;
  receipt_time?: number;
  state_text: string;
  store?: StoreType[];
  store_id?: number;
  total_price?: string;
  transaction_id?: string;
  update_price?: UpdatePriceType;
  update_time?: string;
  user?: BuyerType;
  user_id?: number;
  express?: ExpressType;
  address: AddressType;
}